<?php if( $product->hasPhoto() ): ?>
	<p>
		<div class="naujiena_img">
		<?php echo image_tag(
                        Files::getDirPath('tiny') . $product->getPhotoName()
							, array(
								'border' => 0
								)
							)?>
		</div>
		<?php echo link_to(
                        image_tag(
                            'delete.png'
                            , array(
                                'border' => 0
                            )
                        )
                        , 'pradmin/deleteimg?id=' . $product->getId() . '&uname=' . $photoForUrl
                        , array(
                            'confirm' => __('Are you sure?!')
                        )
        ) ?>
	</p><br /><br /><br />
<?php else: ?>
	<?php echo input_file_tag('product[photo]') ?>
<?php endif; ?>
